package org.csu.group4.jpetstore.persistence;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.csu.group4.jpetstore.mybatis.entity.SignOn;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface SignOnDAO {
    @Select("select * from signon where username=#{username} and password = #{password}")
    SignOn findByUsernameAndPassword(SignOn signOn);
    @Insert("insert signon(username,password) values (#{username} ,#{password})")
    void save(SignOn signOn);
}
